﻿using Modules.Device;
using System.ComponentModel.DataAnnotations;

namespace ManagementApi.Models.Device
{
    public class CardReaderDeviceEditForm
    {
        /// <summary>
        ///  主键
        ///</summary>
        public int Id { get; set; }
        /// <summary>
        /// 设备编码(序列号) 
        ///</summary>
        [Display(Name = "设备编码(序列号)")]
        [Required(ErrorMessage = "{0}不能为空")]
        public string DeviceCode { get; set; }
        /// <summary>
        /// 企业编码 
        ///</summary>
        [Display(Name = "企业编码")]
        [Required(ErrorMessage = "{0}不能为空")]
        public string CorpCode { get; set; }
        /// <summary>
        /// 企业名称
        /// </summary>
        public string? CorpName { get; set; }
        /// <summary>
        /// 设备描述 
        ///</summary>
        [Display(Name = "设备描述")]
        public string? Description { get; set; }
        /// <summary>
        /// 设备信息 
        ///</summary>
        [Display(Name = "设备信息")]
        public string? DeviceInfo { get; set; }
        /// <summary>
        /// 状态（0：待审核，1：已审核，2：已禁用） 
        ///</summary>
        public 设备审核状态? Status { get; set; }
        /// <summary>
        /// 禁用时间 
        ///</summary>
        public DateTime? DisableTime { get; set; }
        /// <summary>
        /// 禁用原因 
        ///</summary>
        public string? DisableReason { get; set; }
    }
}
